package at.fhooe.mc.master.clc.client.view;

import at.fhooe.mc.master.clc.client.presenter.RootTemplatePresenter.IRootTemplateView;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.TabLayoutPanel;

public class RootTemplateView extends Composite implements IRootTemplateView
{

	private TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
	
	public RootTemplateView()
	{
		initWidget(tabPanel);
	}
	
	@Override
	public void addTab(IsWidget widget, String title)
	{
		tabPanel.add(widget.asWidget(), title);
	}

}
